<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <div id="app">
        <!-- 全局组件应用 -->
        <app-header></app-header>
        <app-main></app-main>
        <app-footer></app-footer>
    </div>
    <script src="./node_modules/vue/dist/vue.js"></script>
    <!-- 提取到对应的js当中去 -->
    <script src="./components/header.js"></script>
    <script src="./components/main.js"></script>
    <script src="./components/footer.js"></script>
    <script>
        //注册全局组件
        new Vue({
            el:"#app",
        })
    </script>
</body>
</html>